home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / text0558.txt < prev    next >
Encoding:
Text File  |  1994-09-20  |  2.4 KB  |  59 lines

  1. Date sent:  
  2.  
  3. >
  4. >  Has anyone managed to get 'BitPlanesBitmap' to work?
  5. >  I think the syntax is:
  6. >
  7. >      BitPlanesBitmap SrcBitmap,DestBitmap,Bitplane
  8. >
  9. >  What sort of argument should 'Bitplane' be? Just a number like 0,1 or 2?
  10. >
  11. >  Say I've got a 3 plane bitmap with some shapes on it, some of them in 
  12. >  colour 1.  How do I copy this bitmap to a different 1 plane bitmap, so the
  13. >  new bitmap has only the shapes in colour 1 on it?
  14.  
  15. ARRRRRGGGGGHHHHHHHHH.   NOT ANOTHER QUESTION ABOUT BITPLANESBITMAP!
  16.  
  17. Oh well, here we go again.......
  18.  
  19. This command lets you select the bitplanes from one bitmap and copy their
  20. POINTERS to another bitmap.  How do you select the different planes?  The
  21. Bitplane parameter should be a binary number with a bit set for each plane you
  22. want to grab from the source.  Bit 0 means plane 0, bit 1 plane 1 etc.
  23.  
  24. E.g.
  25.  
  26.             Say we have an 8 bitplane bitmap (256 colours).  We want to
  27. display this on a 5 bitplane copperlist so that we don't have to waste memory
  28. reserving another bitmap.  What we'd do is:
  29.  
  30.         BitplanesBitmap source#,dest#,%11111
  31.  
  32. This would grab the first 5 bitplanes from source and put them in dest.  The
  33. dest# bitmap can then be used as a normal bitmap with one exception - you
  34. cannot do a copybitmap on it (I hope thats the only exception).
  35.  
  36. You can also do special effects with the command, for example you can grab the
  37. top bitplane of a bitmap and just draw in that.  This will cause colour changes
  38. in the picture etc.  You can also do nice fading etc.....
  39.  
  40. For more info, please mail acid!    ;-)  (Sorry Simon - you fault for not
  41. documenting the commands fully!).
  42.  
  43.  
  44.  
  45. Steve Mc.
  46.  
  47. +---------------------------------------------------------------------------+
  48. | Stephen McNamara  Reflective Images|  My map editor's NOT a bit buggy ;-) |
  49. |====================================+======================================|
  50. | A1200/170HD/6MB/Blitz2             | Current project : BlitzBombers AGA   |
  51. |                                    | [#################################:] |
  52. |          >>> HANG-FIRE <<<         | Current Project : RI Libs v???       |
  53. |                                    | [###########################:::::::] |
  54. |                                    | Current Project : RI Map Editor v1.2 |
  55. |  sis3149@sisvax.sis.port.ac.uk     | [#################################:] |
  56. \____________________________________|______________________________________/
  57.  
  58.  
  59.